package messaage;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class UpdateThreadMsg extends Message {

	protected String threadId;
	protected String body;
	protected String username;

	public UpdateThreadMsg(String _username, String _body, String _threadId) {
		this.username = _username;
		this.threadId = _threadId;
		this.body = _body;
		this.type = "UpdateThreadMsg";
	}

	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";
		
		return xml;
	}

	public String getThreadId() {
		return threadId;
	}

	public String getBody() {
		return body;
	}

}
